package com.gaofeng.day22.a03ThreadDemo;

public class ThreadDemo {
    public static void main(String[] args) {
        MyRunnable mr = new MyRunnable();

        Thread t1 = new Thread(mr, "飞机");
        Thread t2 = new Thread(mr,"坦克");

        int p1 = t1.getPriority();
        int p2 = t2.getPriority();

        System.out.println(p1);
        System.out.println(p2);

        t1.setPriority(1);
        t2.setPriority(10);

        t1.start();
        t2.start();
    }
}
